-
Notifications
You must be signed in to change notification settings - Fork 520
Add Install-VSCode.ps1 script #716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Would definitely appreciate some feedback on the quality of this script! |
scripts/Install-VSCode.ps1
Outdated
| #> | ||
| [CmdletBinding()] | ||
| param( | ||
| [Parameter(Mandatory=$false)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually don't bother specifying Mandatory=$false since that is the default. Other than that LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh yep, thanks!
This change adds a new script that can be used to install Visual Studio Code and the PowerShell extension. The intent is for this script to be shipped to the PowerShell Gallery so that one can easily get the script and install VS Code in a single line of PowerShell.
|
Thanks guys! |
|
Argh, yeah, VS Code has this weird thing where they need to update their internal extension metadata by restarting the editor. If you uninstall the extension and close the editor then try to reinstall the extension via command line, VS Code throws up. Not sure if there's a way around that yet, but I'll see what I can figure out. Thanks for letting me know! |
|
Ah that was my bad then as I didn't restart code before uninstalling during the test. |



This change adds a new script that can be used to install Visual Studio
Code and the PowerShell extension. The intent is for this script to be
shipped to the PowerShell Gallery so that one can easily get the script
and install VS Code in a single line of PowerShell.